package cn.highedu.spring;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype") // 被Spring容器管理的对象设置为原型模式(多例模式)
public class PrototypeBean {
    public PrototypeBean() {
        System.out.println("PrototypeBean对象被创建");
    }
}
